package jpg1980.gttunes.actions;

import java.util.List;

import jpg1980.gttunes.beans.Manufacturer;
import jpg1980.gttunes.beans.TuneBasic;
import jpg1980.gttunes.dao.DaoFactory;
import jpg1980.gttunes.dao.ManufacturerDao;
import jpg1980.gttunes.dao.TuneBasicDao;

import org.apache.log4j.Logger;

import com.opensymphony.xwork2.ActionSupport;

public class ManufacturerAction extends ActionSupport
{
	private static final long serialVersionUID = 1L;

	static Logger logger = Logger.getLogger(ManufacturerAction.class);

	List<Manufacturer> manufacturerList;

	public String jsonList()
	{
		ManufacturerDao manufacturerDao = DaoFactory.getDaoFactory().getManufacturerDao();
		manufacturerList = manufacturerDao.readAll();

		return "json_list";
	}

	public List<Manufacturer> getManufacturerList()
	{
		return manufacturerList;
	}

	public void setManufacturerList(List<Manufacturer> manufacturerList)
	{
		this.manufacturerList = manufacturerList;
	}

}
